package de.dqi.pong.menu;

import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

/**
 * TODO StartGui - finish class definition
 * <hr>
 * 
 * <hr><dl><dt>
 * Summary: </dt><br><dd>
 *  
 * </dd><br><dt>
 * Author: </dt><br><dd>
 *  Melina
 * </dd></dl>
 */
public class StartGui
		extends MenuPanel {
	
	private static final long	serialVersionUID	= -7976732089602227034L;
	
	public StartGui() {
		setSize(250, 300);
		setLayout(null);
		
		JLabel text = new JLabel();
		text.setText("PONG");
		text.setHorizontalAlignment(SwingConstants.CENTER);
		text.setFont(new Font("Times New Roman", Font.BOLD, 50));
		text.setBounds(0, 0, 250, 100);
		add(text);
		
		JButton gameStart = new MenuButton(1);
		gameStart.setText("Play");
		gameStart.setBounds(0, 150, 250, 50);
		gameStart.addActionListener(MenuListener.getInstance());
		add(gameStart);
		
		JButton options = new MenuButton(2);
		options.setText("Options");
		options.setBounds(0, 200, 250, 50);
		options.addActionListener(MenuListener.getInstance());
		add(options);
		
		JButton exit = new MenuButton(-1);
		exit.setText("Exit");
		exit.setBounds(0, 250, 250, 50);
		exit.addActionListener(MenuListener.getInstance());
		add(exit);
	}
}